package com.ssy.lingxi.contract.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 请款单明细
 * @author 伍将
 * @date 2021/3/9
 * @version 2.0.0
 */
@Entity
@Table(schema = "public", name = "con_apply_amount_order_detail",
        indexes = {@Index(name = "con_apply_amount_order_detail_apply_id_idx", columnList = "applyId"),
                @Index(name = "con_apply_amount_order_detail_contract_id_idx", columnList = "contractId"),
                @Index(name = "con_apply_amount_order_detail_pay_plan_id_idx", columnList = "payPlanId")})
public class ApplyAmountOrderDetailDO implements Serializable {

    private static final long serialVersionUID = 1655918768871954883L;

    /**
     * ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "apply_amount_order_detail_seq")
    @SequenceGenerator(sequenceName = "con_apply_amount_order_detail_seq", name = "apply_amount_order_detail_seq", allocationSize = 1)
    private Long id;

    /**
     * 请款单id
     */
    @Column(columnDefinition = "int8")
    private Long applyId;

    /**
     * 合同执行情况id
     */
    @Column(columnDefinition = "int8")
    private Long executeId;

    /**
     * 合同id
     */
    @Column(columnDefinition = "int8")
    private Long contractId;

    /**
     * 付款计划id
     */
    @Column(columnDefinition = "int8")
    private Long payPlanId;

    /**
     * 请款金额
     */
    @Column(columnDefinition = "decimal")
    private Double applyAmount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getApplyId() {
        return applyId;
    }

    public void setApplyId(Long applyId) {
        this.applyId = applyId;
    }

    public Long getContractId() {
        return contractId;
    }

    public void setContractId(Long contractId) {
        this.contractId = contractId;
    }

    public Long getPayPlanId() {
        return payPlanId;
    }

    public void setPayPlanId(Long payPlanId) {
        this.payPlanId = payPlanId;
    }

    public Double getApplyAmount() {
        return applyAmount;
    }

    public void setApplyAmount(Double applyAmount) {
        this.applyAmount = applyAmount;
    }

    public Long getExecuteId() {
        return executeId;
    }

    public void setExecuteId(Long executeId) {
        this.executeId = executeId;
    }
}
